
public class TestPeople {
	public static void main(String[] args) {
		People p = new People();
		p.name = "张三";
		p.age = 22;
		p.talk();
	}
}

class People {
	String name;
	int age;
	
	public void talk() {
		System.out.println(name+":今年"+age+"岁了!");
	}
}